#include "unistd.h"
#include "sys/utsname.h"
#include <stdlib.h>

int  t_main (void)
{
    struct utsname  name;
    
    uname(&name);
    
    printf("sysname  : %s\n", name.sysname);
    printf("nodename : %s\n", name.nodename);
    printf("release  : %s\n", name.release);
    printf("version  : %s\n", name.version);
    printf("machine  : %s\n", name.machine);
    
    Lw_TShell_Create(STDOUT_FILENO, LW_OPTION_TSHELL_PROMPT_FULL | LW_OPTION_TSHELL_VT100);
    
    system("LD_LIBRARY_PATH=/mnt/romfs/lib:/qt/lib:/usr/lib:/lib:/usr/local/lib");
    system("cp /mnt/romfs/lib/gralloc.default.so /lib");
    system("cp /mnt/romfs/lib/libcutils.so /lib");
    system("cp /mnt/romfs/lib/libEGL.so /lib");
    system("cp /mnt/romfs/lib/libGLES_android.so /lib");
    system("cp /mnt/romfs/lib/libGLESv1_CM.so /lib");
    system("cp /mnt/romfs/lib/libGLESv2.so /lib");
    system("cp /mnt/romfs/lib/libhardware.so /lib");
    system("cp /mnt/romfs/lib/libpixelflinger.so /lib");
    system("cp /mnt/romfs/lib/libui.so /lib");
    system("cp /mnt/romfs/lib/libutils.so /lib");
    system("cp /mnt/romfs/lib/libwindow.so /lib");
    system("cd /mnt/romfs/apps/");
    system("./05_GeometricObjects");

    return  (0);
}
